package com.um.jdy.platform.activity.manager;

import com.um.jdy.common.activity.entity.dto.CouponsGoodsDTO;
import com.um.jdy.common.activity.entity.po.CouponsGoods;
import com.um.jdy.common.activity.entity.vo.CouponsGoodsVO;
import com.um.jdy.common.activity.service.CouponsGoodsService;
import com.um.jdy.platform.activity.entity.dto.CouponsGoodsListDTO;
import com.um.jdy.platform.activity.entity.dto.CouponsGoodsPageDTO;
import com.um.jdy.platform.activity.entity.vo.CouponsGoodsListVO;
import com.um.springboot.starter.orm.entity.Response;
import com.um.springboot.starter.orm.manager.BaseManager;
import com.um.springboot.starter.orm.manager.BasePlusManager;
import com.um.springboot.starter.orm.params.ListDTO;
import com.um.springboot.starter.orm.params.ListParams;
import com.um.springboot.starter.orm.params.PageDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 管理类：优惠券商品关联表
 */
@Component
public class CouponsGoodsManager extends BasePlusManager<CouponsGoodsService, CouponsGoods, CouponsGoodsDTO, CouponsGoodsVO, CouponsGoodsPageDTO, CouponsGoodsListDTO> {


    public List<CouponsGoodsListVO> getList(CouponsGoodsListDTO couponsGoodsListDTO) {
        List<CouponsGoodsListVO> list = service.getViewModelList("get_coupons_goods_list", CouponsGoodsListVO.class,
                new String[]{couponsGoodsListDTO.getActivityCouponsId(),getComId()});
        return list;
    }
}
